package com.ayoka.parenting.adapter;

import android.widget.ImageView;

import com.ayoka.parenting.Constants;
import com.ayoka.parenting.R;
import com.ayoka.parenting.bean.BasicUserInfoBean;
import com.ayoka.parenting.bean.ClassroomBean;
import com.jincp.common.brvah.BaseQuickAdapter;
import com.jincp.common.brvah.BaseViewHolder;
import com.jincp.common.utils.DateUtil;
import com.jincp.common.utils.StringUtil;
import com.jincp.image.load.ImageLoader;
import com.jincp.image.load.ImageLoaderOptions;

/**
 * Created by jinchunping on 2018/4/11.
 */

public class CoachGridAdapter extends BaseQuickAdapter<BasicUserInfoBean, BaseViewHolder> {

    public CoachGridAdapter() {
        super(R.layout.item_coach_grid);
    }

    @Override
    protected void convert(BaseViewHolder holder, final BasicUserInfoBean item) {
        ImageLoader.getInstance().displayImage(item.LocalAvatar, (ImageView) holder.getView(R.id.iv_header), ImageLoaderOptions.getCircleOptions());
        holder.setText(R.id.tv_name, item.WeixinNickName);
    }
}